import request from '@/utils/request'

// 新增banner
export function add(data) {
    return request({
        url: '/vms/video/banner/add',
        method: 'post',
        data: data
    })
}

// 修改banner
export function update(data) {
    return request({
        url: '/vms/video/banner/update',
        method: 'post',
        data: data
    })
}

// 获取分页banner列表
export function getPaginationList(params){
    return request({
        url: '/vms/video/banner/getPaginationList',
        method: 'get',
        params: params
    })
}

// 获取banner列表
export function getBannerList(params){
    return request({
        url: '/vms/video/banner/getList',
        method: 'get',
        params: params
    })
}

// 删除banner
export function del(id){
    return request({
        url: '/vms/video/banner/delete',
        method: 'delete',
        params: {id}
    })
}

